# filename: example8_9.py

class StudentClass:
    __count = 0

    def __init__(self, name):
        self.name = name
        StudentClass.__count += 1

    @classmethod
    def get_count(cls):
        return StudentClass.__count


stu1 = StudentClass("Zhang San")
stu2 = StudentClass("Li Si")
print(StudentClass.get_count())
# print(StudentClass.__count)  illegal
